/**
 * 
 */
package com.itinsys.enma.domain;

import java.io.Serializable;
import java.sql.Date;

/**
 * @author pferraz
 *
 */
public class Period implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private long id;
	private String description;
	private int type;
	private Date startDate;
	private Date endDate;
	private boolean active;

	/**
	 * 
	 */
	public Period() {
		
	}

	/**
	 * 
	 * @param description
	 * @param startDate
	 * @param endDate
	 */
	public Period(String description, int type,Date startDate,
			Date endDate) {
		this.description = description;
		this.setType(type);
		this.startDate = startDate;
		this.endDate = endDate;
		this.active=true;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	/**
	 * @return the startDate
	 */
	public Date getStartDate() {
		return startDate;
	}

	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	/**
	 * @return the endDate
	 */
	public Date getEndDate() {
		return endDate;
	}

	/**
	 * @param endDate the endDate to set
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	/**
	 * @return the active
	 */
	public boolean isActive() {
		return active;
	}

	/**
	 * @param active the active to set
	 */
	public void setActive(boolean active) {
		this.active = active;
	}
	
	
	
	
}
